import Vue from 'vue'
//使用yarn或者npm安装3.53版本的vue-router包(项目记得重启)
//1、引入vueRouter
import VueRouter from 'vue-router'
import Find from "@/views/login.vue"
import My from "@/views/My.vue"
import Friend from "@/views/Friend.vue"
//2、使用vue.use进行注册
Vue.use(VueRouter)
//3、开始配置vueRouter映射表关系
const router = new VueRouter({
  //通过routes配置路由规则
  linkActiveClass:'模糊匹配',
  linkExactActiveClass:'精确匹配',
  routes: [
    {
      path: '/find',
      component: Find
    },
    {
      path: '/my',
      component: My
    },
    {
      path: '/part',
      component: Friend
    },
  ]
})

export default router